import dva from 'dva';
import 'antd/dist/antd.css'
import './index.css';
import products from './models/products'

// 1. Initialize
// const app = dva();
const app = dva({
  initialState: {
    products: [
      {name: 'dva', id: 1},
      {name: 'antd', id: 2},
    ],
  },
});

// 2. Plugins
// app.use({});

// 3. Model
app.model(products);

// 4. Router
app.router(require('./router').default);

// 5. Start
app.start('#root');
